<template>
  <div id="app">
    <Header></Header>
    <router-view></router-view>
    <Footer v-show="this.$route.meta.show"></Footer>
  </div>
</template>

<script>
//引入非路由组件
import Header from "@/components/Header/index.vue";
import Footer from "@/components/Footer/index.vue";
export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  mounted() {
    //通知vuex仓库发请求 获取数据 存储于仓库中
    this.$store.dispatch("caregoryList");
  },
};
</script>

<style lang="scss"></style>
